package widget.book.manager
{
	import widget.book.mode.BookModel;

	public class BookManager{
		private static var _instance:BookManager = null;
		
		private var _bookMode:BookModel = null;
		public function BookManager()
		{
			if(_instance)
				throw new Error("BookManager is singleton!!!");
			init();
		}
		
		public static function getInstance():BookManager
		{
			if(_instance == null)
				_instance = new BookManager();
			return _instance;
		}
		
		private function init():void
		{
			_bookMode = new BookModel();
		}
		
		public function get bookModel():BookModel
		{
			return _bookMode;
		}
	}
}